Min Function

Returns the smallest of the numbers passed.

Syntax

result = Min( value1, [value2] )


Parameters

value1

Double

The first number for comparison.

value2 (Optional)

Double

The second number for comparison.



Notes

The Min function compares the numbers passed and returns the smallest value.


Examples

This example uses the Min function to return the lesser of the two values passed.

Dim d As Double
d=Min (3.01, 4.05) //returns 3.01
d=Min(3.012, 3.011) //returns 3.011

See Also

Abs, Ceil, Exp, Floor, Max, Pow, Sqrt functions.